package com.xdf.wxbebarrel.model.templateMessage;

import com.xdf.wxbebarrel.utils.SysConst;
import lombok.Builder;

/**
 * 2021年2月17日 20:25:20
 * 对应 wxpad 项目中 model 包下的 TMMeta
 */
@Builder
public class MetaData {
    private String value;
    private String color;

    public MetaData(String value, String color) {// 自定义文字颜色
        super();
        this.value = value;
        this.color = color;
    }

    public MetaData(String value) {// 默认使用蓝色字体
        super();
        this.value = value;
        this.color = SysConst.TEMPLATE_MESSAGE_BLUE;
    }

    private static final long serialVersionUID = 1L;

    public String getValue() {
        return value;
    }

    public void setValue(String value) {
        this.value = value;
    }

    public String getColor() {
        return color;
    }

    public void setColor(String color) {
        this.color = color;
    }

    public static long getSerialVersionUID() {
        return serialVersionUID;
    }

    @Override
    public String toString() {
        return "MetaData{" +
                "value='" + value + '\'' +
                ", color='" + color + '\'' +
                '}';
    }
}
